package com.wh.dao;

import com.wh.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductDao {
    public int insertProduct(Product product);

    public int updateProduct(Product product);

    public int deleteProduct(int productId);

    public List<Product> selectProducts();

    public List<Product> selectProductsByPage(@Param("start") int start,@Param("num") int num);
}
